<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

//Route::get('/', function () {
//    return view('welcome');
//});


Route::get("/",'Login\LoginController@login');                                              //   登陆
Route::post("/do_login",'Login\LoginController@doLogin');                                   //   登陆
Route::get("/logout",'Login\LoginController@logout');                                       //   退出

Route::get("/home",'Index\IndexController@home');                                           //   首页 页面
Route::get("/index",'Index\IndexController@getAccountInfo');                                //   用户账号信息
Route::any("/account",'Index\IndexController@getAccountList');                              //   获取账号列表
Route::post("/addAccount",'Index\IndexController@addAccount');                              //   开通账号
Route::post("/updateAccount",'Index\IndexController@updateAccount');                        //   修改账户信息
Route::get("/getaccountonlieInfo",'Index\IndexController@getAccountOnlineInfo');            //   获取账户在线信息
Route::get("/forbiddenAaccount",'Index\IndexController@forbiddenAccount');                  //   账户禁用
Route::any("/bill",'Index\IndexController@getBillList');                                    //   账单列表
Route::any("/online",'Index\IndexController@getAccountOnline');                             //   在线线路列表